package com.ly.wxstore.utils;

import java.util.Random;

/**
 *  电影票 泰香米 雪花啤酒礼盒装
 *  
 *  比例5:3:2
 *  
 * @author Administrator
 *
 */
public class PrizeUtils {
	public static final String prize_1_name="电影票1张";
	public static final String prize_2_name="泰香米";
	public static final String prize_3_name="雪花啤酒礼盒装";
	
	/*static int a=0;
	static int b=0;
	static int c=0;*/

	
	public static String getPrizeName(){
		Random r= new Random();
		int i = r.nextInt(10);
		System.out.println(i);
		if(i>=0 && i<=4){
			//a++;
			return prize_1_name;
		}else if(i>=5 && i<=7){
			//b++;
			return prize_2_name;
		}else{
			//c++;
			return prize_3_name;
		}
		
	}
	
	public static void main(String[] args) {
		for (int i = 0; i < 100; i++) {
			System.out.println(getPrizeName());
		}
		
		//System.out.println(a+":"+b+":"+c  +"  =   " +(a+b+c));
	}
	
	
}
